﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt;

    public class ProjectBaoZhengJin_Shou_Map : ClassMapping<ProjectBaoZhengJin_Shou>
    {
        public ProjectBaoZhengJin_Shou_Map()
        {
            //映射ID
            Id(x => x.rec_id, map => map.Length(40));

            Property(x => x.is_valid);
            Property(x => x.create_date);

            Property(x => x.bzj_date);
            Property(x => x.bzj_remark, map => map.Length(1000000));
            Property(x => x.bzj_value);
            
            //操作员
            ManyToOne(x => x.op_user, map =>
            {
                map.Column("op_user_id");
            });

            //项目与投标人关联关系记录
            ManyToOne(x => x.ref_ProjAndEnt, map =>
            {
                map.Column("pe_id");
            });

            Table("t_finance_bzj_sou");

            //不进行创建
            SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.None);
        }
    }
}
